
import VueRouter from "vue-router";

const routers = [{
  path:'/main',
  name:'main',
  component: () => import('@/views/main/main'),
  children:[
    {
      path:'/info',
      name:'info',
      component: () => import('@/views/main/info')
    },
    {
      path:'/detail',
      name:'detail',
      component: () => import('@/views/main/detail')
    }
  ]
},{
    path:'/',
    name:'login',
    component: () => import('@/views/login/index')
},{
  path:'/eLogin',
  name:'eLogin',
  component: () => import('@/views/login/eLogin')
}]

export default new VueRouter({
    routes: routers
});